package GUI.Dog;
/**
 * this is the DogManage window GUI class. thru that window user can
 * access to Dog database Management operations
 */
import java.awt.Color;
import java.awt.ComponentOrientation;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.UIManager;
import javax.swing.border.LineBorder;

import GUI.Course.CourseManage;
import GUI.Report.ReportManage;
import GUI.Test.TestManage;

public class DogManage extends JFrame
{

	private static final long serialVersionUID = 1L;

	@SuppressWarnings("unused")
	public DogManage() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setSize(600, 500);
		setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
		setTitle("\u05E0\u05D9\u05D4\u05D5\u05DC \u05DE\u05D0\u05D2\u05E8 \u05DB\u05DC\u05D1\u05D9\u05DD");
		getContentPane().setLayout(null);
		
		JButton button_2 = new JButton("\u05E7\u05D5\u05E8\u05E1\u05D9\u05DD");
		button_2.setFont(new Font("David", Font.PLAIN, 14));
		button_2.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				setVisible(false);
				CourseManage coursewindow=new CourseManage();
				coursewindow.setVisible(true);
				
				
				
			}
		});
		button_2.setBounds(431, 178, 111, 23);
		getContentPane().add(button_2);
		
		JButton button_1 = new JButton("\u05DE\u05D1\u05D7\u05E0\u05D9\u05DD");
		button_1.setFont(new Font("David", Font.PLAIN, 14));
		button_1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				setVisible(false);
				TestManage testwindow=new TestManage();
				testwindow.setVisible(true);
				
			}
		});
		button_1.setBounds(431, 292, 111, 23);
		getContentPane().add(button_1);
		
		JButton button = new JButton("\u05D3\u05D5\u05D7\u05D5\u05EA");
		button.setFont(new Font("David", Font.PLAIN, 14));
		button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				setVisible(false);
				ReportManage reportwindow=new ReportManage();
				reportwindow.setVisible(true);
			}
		});
		button.setBounds(431, 236, 111, 23);
		getContentPane().add(button);
		
		JButton btnNewButton = new JButton("\u05DE\u05D0\u05D2\u05E8 \u05DB\u05DC\u05D1\u05D9\u05DD");
		btnNewButton.setFont(new Font("David", Font.BOLD, 16));
		btnNewButton.setBackground(UIManager.getColor("Button.background"));
		btnNewButton.setBounds(431, 126, 111, 23);
		getContentPane().add(btnNewButton);
		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				setVisible(false);
				DogManage dogwindow=new DogManage();
				dogwindow.setVisible(true);
				
			}
		});
	
		setTitle("\u05E0\u05D9\u05D4\u05D5\u05DC \u05DE\u05D0\u05D2\u05E8 \u05DB\u05DC\u05D1\u05D9\u05DD");
		setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
		getContentPane().setLayout(null);
		
		JPanel panel = new JPanel();
		panel.setBorder(new LineBorder(new Color(0, 0, 0), 2));
		panel.setBounds(59, 104, 318, 240);
		getContentPane().add(panel);
		panel.setLayout(null);
		
		JButton button_3 = new JButton("\u05D4\u05D5\u05E1\u05E4\u05EA \u05DB\u05DC\u05D1 ");
		button_3.setFont(new Font("David", Font.PLAIN, 14));
		button_3.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e)
			{
			AddDogWindow dogcard=new AddDogWindow();
			dogcard.setVisible(true);
			dispose();
			}
		});
		button_3.setBounds(101, 101, 111, 23);
		panel.add(button_3);
		
		JButton button_4 = new JButton("\u05D7\u05D9\u05E4\u05D5\u05E9 \u05DB\u05DC\u05D1 ");
		button_4.setFont(new Font("David", Font.PLAIN, 14));
		button_4.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e)
			{
			SearchDog searchdog = null;
			try {
				searchdog = new SearchDog();
			} catch (Exception e1) {
				// TODO Auto-generated catch block
				e1.printStackTrace();
			}
			searchdog.setVisible(true);
			dispose();
				
			}
		});
		button_4.setBounds(101, 48, 111, 23);
		panel.add(button_4);
		
		JButton button_5 = new JButton("\u05DE\u05D7\u05D9\u05E7\u05EA \u05DB\u05DC\u05D1 ");
		button_5.setFont(new Font("David", Font.PLAIN, 14));
		button_5.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				DeleteDog deletedog = null;
				try {
					deletedog = new DeleteDog();
				} catch (Exception e1) {
					// TODO Auto-generated catch block
					e1.printStackTrace();
				}
				deletedog.setVisible(true);
				dispose();
				
			}
		});
		button_5.setBounds(101, 157, 111, 23);
		panel.add(button_5);
		
		JButton button_6 = new JButton("\u05D9\u05E6\u05D9\u05D0\u05D4 \u05DE\u05D4\u05DE\u05E2\u05E8\u05DB\u05EA");
		button_6.setFont(new Font("David", Font.PLAIN, 14));
		button_6.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				System.exit(0);
			}
		});
		button_6.setBounds(59, 380, 128, 23);
		getContentPane().add(button_6);
		
		ImageIcon ic=new ImageIcon("C:/Project/IDF1/MiscFiles/okets.jpg");
		JLabel lblNewLabel_1 = new JLabel(new ImageIcon("C:/Project/IDF1/MiscFiles/Picture4.jpg"));
		lblNewLabel_1.setBounds(-13, -84, 612, 610);
		getContentPane().add(lblNewLabel_1);
		
		ImageIcon ic1=new ImageIcon("C:/Project/IDF1/MiscFiles/okets.jpg");
		JLabel lblNewLabel_2 = new JLabel(new ImageIcon("C:/Project/IDF1/MiscFiles/Picture4.jpg"));
		lblNewLabel_2.setBounds(0, 0, 334, 374);
		panel.add(lblNewLabel_2);
	}
}
